.class public Les/xi$b;
.super Ljava/lang/Object;
.source "ScanContext.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Les/xi;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x9
    name = "b"
.end annotation


# direct methods
.method public static a(I)Les/xi;
    .locals 11

    const-string p0, "context"

    const-string v0, "create scanner context"

    .line 1
    invoke-static {p0, v0}, Lcom/estrongs/android/util/n;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 2
    new-instance p0, Les/xi;

    const/4 v0, 0x0

    invoke-direct {p0, v0}, Les/xi;-><init>(Les/xi$a;)V

    .line 3
    new-instance v0, Les/oi;

    invoke-direct {v0}, Les/oi;-><init>()V

    invoke-static {p0, v0}, Les/xi;->a(Les/xi;Les/ci;)V

    .line 4
    invoke-virtual {p0}, Les/xi;->f()Les/fi;

    move-result-object v0

    .line 5
    invoke-static {}, Lcom/estrongs/android/pop/c;->b()Ljava/lang/String;

    move-result-object v1

    .line 6
    invoke-static {}, Les/gi;->d()Ljava/util/List;

    move-result-object v2

    .line 7
    new-instance v3, Ljava/util/ArrayList;

    invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V

    .line 8
    new-instance v4, Les/ti;

    invoke-direct {v4, v0}, Les/ti;-><init>(Les/fi;)V

    .line 9
    invoke-interface {v3}, Ljava/util/List;->clear()V

    .line 10
    invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v5

    :goto_0
    invoke-interface {v5}, Ljava/util/Iterator;->hasNext()Z

    move-result v6

    const-string v7, "/Download"

    if-eqz v6, :cond_1

    invoke-interface {v5}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Ljava/lang/String;

    .line 11
    invoke-static {v6}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v8

    if-eqz v8, :cond_0

    goto :goto_0

    .line 12
    :cond_0
    new-instance v8, Ljava/lang/StringBuilder;

    invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v8, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v8, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-interface {v3, v6}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 13
    :cond_1
    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v5, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-interface {v3, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 14
    invoke-static {}, Les/ni;->c()Ljava/lang/String;

    move-result-object v5

    invoke-interface {v3, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 15
    new-instance v5, Les/ni;

    invoke-direct {v5, v0, v3}, Les/ni;-><init>(Les/fi;Ljava/util/List;)V

    .line 16
    invoke-interface {v3}, Ljava/util/List;->clear()V

    .line 17
    invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v6

    :goto_1
    invoke-interface {v6}, Ljava/util/Iterator;->hasNext()Z

    move-result v7

    const-string v8, "/DCIM/.thumbnails"

    if-eqz v7, :cond_2

    invoke-interface {v6}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Ljava/lang/String;

    .line 18
    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v9, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v9, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-interface {v3, v7}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_1

    .line 19
    :cond_2
    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v6, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-interface {v3, v6}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 20
    new-instance v6, Les/ui;

    invoke-direct {v6, v0, v3}, Les/ui;-><init>(Les/fi;Ljava/util/List;)V

    .line 21
    new-instance v7, Les/qi;

    invoke-direct {v7, v0}, Les/qi;-><init>(Les/fi;)V

    .line 22
    invoke-interface {v3}, Ljava/util/List;->clear()V

    .line 23
    invoke-static {}, Les/gi;->a()Ljava/util/List;

    move-result-object v8

    .line 24
    invoke-interface {v8}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v8

    :goto_2
    invoke-interface {v8}, Ljava/util/Iterator;->hasNext()Z

    move-result v9

    if-eqz v9, :cond_4

    invoke-interface {v8}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v9

    check-cast v9, Ljava/lang/String;

    .line 25
    invoke-static {v9}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v10

    if-eqz v10, :cond_3

    goto :goto_2

    .line 26
    :cond_3
    invoke-static {v9}, Lcom/estrongs/android/util/h0;->Z(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    invoke-interface {v3, v9}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_2

    .line 27
    :cond_4
    invoke-static {v1}, Lcom/estrongs/android/util/h0;->Z(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    invoke-interface {v3, v8}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 28
    invoke-static {v3}, Les/gi;->a(Ljava/util/List;)Ljava/util/List;

    move-result-object v3

    .line 29
    new-instance v8, Les/si;

    invoke-direct {v8, v0, v3}, Les/si;-><init>(Les/fi;Ljava/util/List;)V

    .line 30
    invoke-interface {v3}, Ljava/util/List;->clear()V

    .line 31
    new-instance v9, Ljava/util/ArrayList;

    invoke-direct {v9}, Ljava/util/ArrayList;-><init>()V

    .line 32
    invoke-virtual {v9, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 33
    invoke-static {v9}, Lcom/estrongs/android/cleaner/scandisk/a;->a(Ljava/util/List;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v3, v1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    .line 34
    invoke-static {v2}, Lcom/estrongs/android/cleaner/scandisk/a;->a(Ljava/util/List;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v3, v1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    .line 35
    new-instance v1, Les/mi;

    invoke-direct {v1, v0, v3}, Les/mi;-><init>(Les/fi;Ljava/util/List;)V

    .line 36
    invoke-interface {v3}, Ljava/util/List;->clear()V

    .line 37
    invoke-static {p0, v8}, Les/xi;->b(Les/xi;Les/ci;)V

    .line 38
    invoke-static {p0, v4}, Les/xi;->c(Les/xi;Les/ci;)V

    .line 39
    invoke-static {p0, v7}, Les/xi;->c(Les/xi;Les/ci;)V

    .line 40
    invoke-static {p0, v1}, Les/xi;->b(Les/xi;Les/ci;)V

    .line 41
    invoke-static {p0, v5}, Les/xi;->b(Les/xi;Les/ci;)V

    .line 42
    invoke-static {p0, v6}, Les/xi;->b(Les/xi;Les/ci;)V

    return-object p0
.end method
